package edu.whut.mall.admin.service;

import edu.whut.mall.admin.vo.RefundRequestVo;
import edu.whut.mall.common.api.CommonPage;
import edu.whut.mall.common.api.CommonResult;

import java.security.NoSuchAlgorithmException;

/**
 * @author Wayne
 * @projectName d9lab-mall
 * @description: 支付服务接口
 * @date 2020/11/30 19:26
 */
public interface IPayInfoService {
    /**
     * 退款
     * @param orderNo
     * @return
     * @throws NoSuchAlgorithmException
     */
    CommonResult refund(String orderNo) throws NoSuchAlgorithmException;

    /**
     * 商家退款处理总流程
     * @param orderNo
     * @return
     */
    CommonResult refundProcessing(String orderNo) throws NoSuchAlgorithmException;

    /**
     * 根据状态来获取退款请求
     * @param pageNum
     * @param size
     * @param status 状态
     * @return
     */
    CommonPage<RefundRequestVo> listRefundRequestVoByStatus(Integer pageNum, Integer size, Integer status);

    /**
     * 拒绝退款
     * @param
     * @return
     */
    Integer refuseRefund(String orderNo);
}